package com.gree.scmservice.service.saas;

import com.gree.common.entity.ReturnVo;
import com.gree.common.entity.TablePageData;
import com.gree.scmservice.entity.saas.SaasCommodity;
import com.gree.scmservice.entity.saas.vo.SaasCommodityVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * 包路径: com.gree.scmservice.service.saan
 * 项目名: scm-api
 * 创建时间: 2021-07-12 15:07
 * 描述: TODO 商品信息
 **/
public interface SaasCommdityService {

    int saveCommodity(SaasCommodityVo saasCommodityVO);

    int updateCommodity(SaasCommodityVo saasCommodityVO);

    SaasCommodity getByIdCommodity(String groupId);

    TablePageData<SaasCommodity> findAllPageCommodity(SaasCommodity saasCommodity);

    TablePageData<SaasCommodity> findAllPageCommodityOnUser(SaasCommodity saasCommodity);

    int deleteCommodity(String[] ids);

    ReturnVo uploadIcon(MultipartFile file, String groupId);

    void downloadImage(String image, HttpServletResponse response);

}
